sheet0 = ["100", "9808", "9898", "565", "97", "549*"]
sheet1 = ["98", "9870", "878*", "987"]
sheet2 = ["9879", "897", "666", "7878*", "878", "778*"]
# 1. 求出三个 sheet 中不含 * 号的所有 item 总和
# 2. 求出 1 中数据的平均数



# 找出sheet3中的非负数，并求和
sheet3 = [979, 978, -10, 898, -33, 9980, 980870, 898708]

def sum_sheet3(nums):
    sum = 0
    for i in nums:
        if i > 0:
            sum += i
    return sum

result = sum_sheet3(sheet3)
print(result)


item = "978"
print(f"* 的index是：{item.find('*')}")



# if item.index('*') in item
# print(sheet0.index('*'))
# if "*" in sheet0:
#     print(sheet0.index("*"))
# else:
#     "not found"
# 思路：
# new_sheet1 = list(map(int,sheet0))
# print(new_sheet1)
